package exception;

import java.awt.*;
import java.io.IOException;

/**
 *当派生类重写超类含有throws声明异常抛出的方法时,对throws的重写规则
 */
public class ThrowsDemo2 {
    public void dosome()throws IOException, AWTException{}
}
class SubClass extends ThrowsDemo2{

    //public void dosome() throws IOException,AWTException{}//完全一致
    //public void dosome() {}//不抛


}